package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

@Entity
public class Proplan {
    private String proplanid;
    private String scpch;
    private String scmc;
    private Integer jhscsl;
    private Integer sjscsl;
    private Double jhsdyl;
    private Double sjsdyl;
    private Integer jhbcsl;
    private Integer sjbcsl;
    private Date jhrq;

    @Id
    @Column(name = "proplanid")
    public String getProplanid() {
        return proplanid;
    }

    public void setProplanid(String proplanid) {
        this.proplanid = proplanid;
    }

    @Basic
    @Column(name = "scpch")
    public String getScpch() {
        return scpch;
    }

    public void setScpch(String scpch) {
        this.scpch = scpch;
    }

    @Basic
    @Column(name = "scmc")
    public String getScmc() {
        return scmc;
    }

    public void setScmc(String scmc) {
        this.scmc = scmc;
    }

    @Basic
    @Column(name = "jhscsl")
    public Integer getJhscsl() {
        return jhscsl;
    }

    public void setJhscsl(Integer jhscsl) {
        this.jhscsl = jhscsl;
    }

    @Basic
    @Column(name = "sjscsl")
    public Integer getSjscsl() {
        return sjscsl;
    }

    public void setSjscsl(Integer sjscsl) {
        this.sjscsl = sjscsl;
    }

    @Basic
    @Column(name = "jhsdyl")
    public Double getJhsdyl() {
        return jhsdyl;
    }

    public void setJhsdyl(Double jhsdyl) {
        this.jhsdyl = jhsdyl;
    }

    @Basic
    @Column(name = "sjsdyl")
    public Double getSjsdyl() {
        return sjsdyl;
    }

    public void setSjsdyl(Double sjsdyl) {
        this.sjsdyl = sjsdyl;
    }

    @Basic
    @Column(name = "jhbcsl")
    public Integer getJhbcsl() {
        return jhbcsl;
    }

    public void setJhbcsl(Integer jhbcsl) {
        this.jhbcsl = jhbcsl;
    }

    @Basic
    @Column(name = "sjbcsl")
    public Integer getSjbcsl() {
        return sjbcsl;
    }

    public void setSjbcsl(Integer sjbcsl) {
        this.sjbcsl = sjbcsl;
    }

    @Basic
    @Column(name = "jhrq")
    public Date getJhrq() {
        return jhrq;
    }

    public void setJhrq(Date jhrq) {
        this.jhrq = jhrq;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Proplan proplan = (Proplan) o;

        if (proplanid != null ? !proplanid.equals(proplan.proplanid) : proplan.proplanid != null) return false;
        if (scpch != null ? !scpch.equals(proplan.scpch) : proplan.scpch != null) return false;
        if (scmc != null ? !scmc.equals(proplan.scmc) : proplan.scmc != null) return false;
        if (jhscsl != null ? !jhscsl.equals(proplan.jhscsl) : proplan.jhscsl != null) return false;
        if (sjscsl != null ? !sjscsl.equals(proplan.sjscsl) : proplan.sjscsl != null) return false;
        if (jhsdyl != null ? !jhsdyl.equals(proplan.jhsdyl) : proplan.jhsdyl != null) return false;
        if (sjsdyl != null ? !sjsdyl.equals(proplan.sjsdyl) : proplan.sjsdyl != null) return false;
        if (jhbcsl != null ? !jhbcsl.equals(proplan.jhbcsl) : proplan.jhbcsl != null) return false;
        if (sjbcsl != null ? !sjbcsl.equals(proplan.sjbcsl) : proplan.sjbcsl != null) return false;
        if (jhrq != null ? !jhrq.equals(proplan.jhrq) : proplan.jhrq != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = proplanid != null ? proplanid.hashCode() : 0;
        result = 31 * result + (scpch != null ? scpch.hashCode() : 0);
        result = 31 * result + (scmc != null ? scmc.hashCode() : 0);
        result = 31 * result + (jhscsl != null ? jhscsl.hashCode() : 0);
        result = 31 * result + (sjscsl != null ? sjscsl.hashCode() : 0);
        result = 31 * result + (jhsdyl != null ? jhsdyl.hashCode() : 0);
        result = 31 * result + (sjsdyl != null ? sjsdyl.hashCode() : 0);
        result = 31 * result + (jhbcsl != null ? jhbcsl.hashCode() : 0);
        result = 31 * result + (sjbcsl != null ? sjbcsl.hashCode() : 0);
        result = 31 * result + (jhrq != null ? jhrq.hashCode() : 0);
        return result;
    }
}
